package forum.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.NamedNativeQueries;
import org.hibernate.annotations.NamedNativeQuery;

@Entity
@Table(name="TB_INTEGRANTES", schema="FORUM")

@NamedNativeQueries({
	@NamedNativeQuery(
			name="integrantes", query="SELECT * FROM FORUM.TB_INTEGRANTES", resultClass=IntegrantesBean.class)
})

public class IntegrantesBean implements Serializable {

	@Id
	@SequenceGenerator(name="sq_integrantes", sequenceName="FORUM.SQ_INTEGRANTES")
	@GeneratedValue(generator="sq_integrantes", strategy=GenerationType.AUTO)
	@Column(name="CD_INTEGRANTES")
	private int codigo;
	
	@Column(name="CONTEUDO")
	private String conteudo;

	public int getCodigo() {
		return codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public String getConteudo() {
		return conteudo;
	}

	public void setConteudo(String conteudo) {
		this.conteudo = conteudo;
	}
}
